/*
*			该程序大部分定义
*/

#pragma once

#include <boost/assert.hpp>
#include <iostream>
#include <boost/typeof/typeof.hpp>
using std::cout;
using std::endl;

typedef unsigned char   BYTE;
typedef unsigned int    UINT;


#define		CX_ASSERT(expr)				BOOST_ASSERT(expr)
#define		CX_ASSERT_MSG(expr,msg)		BOOST_ASSERT_MSG(expr,msg)

#define		CX_ERR_MESSAGE(msg)			{cout<<"Error Message:\t"<<(msg)<<endl; }



#define     CXSIGNALS        public
#define     CXSLOTS          public

typedef unsigned int	UINT;
typedef	const char*		LPCSTR;

enum 
{
	THREAD_RUNNING,
	THREAD_SUSPEND,								//线程状态
	THREAD_STOP
};



